<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>系统日志</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="72586617">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/admin/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/admin/js/jquery-1.7.1.min.js"></script>
	
	<script type="text/javascript" src="/admin/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/admin//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<script type="text/javascript" src="/admin/js/jquery-ui-1.10.2.custom.min.js"></script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/admin/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/admin/css/define.css"/>
	<!-- icon font -->
  	<link rel="stylesheet" href="/admin/css/iconfont.css">
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "72586617";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/admin/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/admin/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("log.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		document.title={
  			 "insert":"创建系统日志"
  			,"inport":"导入系统日志"
  			,"update":"修改系统日志"
  			,"detail":"系统日志详情"
  		}[options.edittype];
  		THIS.setData(protocol.data); 
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>
<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#logForm").form({
		"":function(){}
		,"srvLog.slId":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"srvLog.slHost":function(el){
		}
		,"srvLog.slName":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "操作名称不能为空";
			}
			if(el.value.length>128 && el.value.indexOf("[*]")==-1)
				return "操作名称最大长度为128个字符";
		}
		,"srvLog.slModel":function(el){
		}
		,"srvLog.slType":function(el){
		}
		,"srvLog.slUser":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"srvLog.slClass":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "模块类名最大长度为32个字符";
		}
		,"srvLog.slRelate":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"srvLog.slDetail":function(el){
			if(el.value.length>65535 && el.value.indexOf("[*]")==-1)
				return "数据状态最大长度为65535个字符";
		}
		,"srvLog.slAddTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "操作时间不能为空";
			}
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>

<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>


<form enctype="{{inports!=null?'multipart/form-data':''}}" lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'||edittype=='inport'}}" class="form editform edittype_{{edittype}}" ref="SrvLog" id="logForm" name="logForm" target="jsoniframe" action="log.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt">
				温馨提示：请仔细填写系统日志相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
			
			
			<lz:block lz:if="{{inports}}">
			  <div class="line"></div>
			  <dl style="width:98%;">
			  	<dt>Excel文件:</dt>
			  	<dd>
			  		<input type="hidden" value="{{inports}}" name="inports" id="inports" />
			  		<input type="hidden" value="{{inport$}}" name="inport$" id="inport$" />
			  		<input name="file" name="file" type="file"/>
			  		<b>*</b>
			  		<div>
						请上传excel文件，表格列依次为：[{{inport$}}]，excel表格第一行为列名称，将不作为上传数据行
					</div>
			  	</dd>
			  </dl>
			  <div class="line"></div>
			</lz:block>
	{{lz.set("slId_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slId"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"slId"))))}}
	{{lz.set("slId_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$slId}}
	<dl lz:if="{{slId_editable||slId_readonly}}" class="slId hidden " major  ref="slId">
		<dt>编　　号:</dt>
		<dd lz:if="{{slId_editable}}" input="hidden">
			<lz:block lz:if="{{srvLog$slId}}">
				{{srvLog$slId}}
			</lz:block>
			<lz:block lz:if="{{!srvLog$slId}}">
			<input type="hidden" value="{{lz.htm(srvLog.slId)}}" name="srvLog.slId" id="slId" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slId_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="slId">{{srvLog.slId}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvLog.slId$||srvLog.slId)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slId}}
	{{lz.set("slHost_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slHost"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"slHost"))))}}
	{{lz.set("slHost_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$slHost}}
	<dl lz:if="{{slHost_editable||slHost_readonly}}" class="ribs slHost  " major  ref="slHost">
		<dt>域:</dt>
		<dd lz:if="{{slHost_editable}}" input="combox">
			<lz:block lz:if="{{srvLog$slHost}}">
				{{srvLog$slHost}}
			</lz:block>
			<lz:block lz:if="{{!srvLog$slHost}}">
		 			<select class="combox narrow" action="/admin/permissions/host.query.do?size=255" id="slHost" name="srvLog.slHost">
		 				<option selected="selected" value="{{lz.htm(srvLog.slHost)}}">{{lz.htm(srvLog.slHost$||srvLog.slHost)}}</option>
		 			</select>
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#slHost').val())==''){return;};window.href('/admin/permissions/host.detail.do?key='+$('#slHost').val(),{ctrl:{editable:false}})"></a>
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slHost_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="slHost">{{srvLog.slHost}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/permissions/host.details.html?key=srvLog.slHost}')">
			 {{lz.html(srvLog.slHost$||srvLog.slHost)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slHost}}
	{{lz.set("slName_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slName"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"slName"))))}}
	{{lz.set("slName_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$slName}}
	<dl lz:if="{{slName_editable||slName_readonly}}" class="slName   mider" major  ref="slName">
		<dt>操作名称:</dt>
		<dd lz:if="{{slName_editable}}" input="text">
			<lz:block lz:if="{{srvLog$slName}}">
				{{srvLog$slName}}
			</lz:block>
			<lz:block lz:if="{{!srvLog$slName}}">
		 	<input type="text" class="input mide"   name="srvLog.slName" id="slName"  value="{{lz.htm(srvLog.slName)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入系统日志的操作名称</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slName_readonly}}">
		 	<div class="state-input mide">
		 		<textarea class=""  style="display:none;" id="slName">{{srvLog.slName}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvLog.slName$||srvLog.slName)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slName}}
	{{lz.set("slModel_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slModel"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"slModel"))))}}
	{{lz.set("slModel_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$slModel}}
	<dl lz:if="{{slModel_editable||slModel_readonly}}" class="ribs slModel  " major  ref="slModel">
		<dt>操作模块:</dt>
		<dd lz:if="{{slModel_editable}}" input="select">
			<lz:block lz:if="{{srvLog$slModel}}">
				{{srvLog$slModel}}
			</lz:block>
			<lz:block lz:if="{{!srvLog$slModel}}">
		 	<select class="narrow" id="slModel" name="srvLog.slModel">
		 		<option value="">请选择</option>
				<option lz:for="{{slModel$items}}" value="{{item.key}}" selected='{{srvLog.slModel==item.key?"selected":""}}'>{{item.value}}</option>
		 	</select>
		 	<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#slModel').val())==''){return;};window.href('/admin/configurator/property.detail.do?key='+$('#slModel').val(),{ctrl:{editable:false}})"></a>
	 			<a class="reladd" config="{
	 				action:'/admin/configurator/property.edit.html?edittype=insert&rd=1&exptag=model_class:系统数据模型类'
	 				,callback:function(object){
	 					$('<option selected value='+object.spId+'>'+object.spName+'</option>').appendTo('#slModel');
	 				}
	 			}" href="javascript:void(0);"></a>
	 	 </lz:block>
	 	 
	 	 <em>请选择系统日志的操作模块</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slModel_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="slModel">{{srvLog.slModel}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/configurator/property.details.html?key=srvLog.slModel}')">
			 {{lz.html(srvLog.slModel$||srvLog.slModel)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slModel}}
	{{lz.set("slType_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slType"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"slType"))))}}
	{{lz.set("slType_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$slType}}
	<dl lz:if="{{slType_editable||slType_readonly}}" class="ribs slType  " major  ref="slType">
		<dt>操作类型:</dt>
		<dd lz:if="{{slType_editable}}" input="select">
			<lz:block lz:if="{{srvLog$slType}}">
				{{srvLog$slType}}
			</lz:block>
			<lz:block lz:if="{{!srvLog$slType}}">
		 	<select class="narrow" id="slType" name="srvLog.slType">
		 		<option value="">请选择</option>
				<option lz:for="{{slType$items}}" value="{{item.key}}" selected='{{srvLog.slType==item.key?"selected":""}}'>{{item.value}}</option>
		 	</select>
		 	<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#slType').val())==''){return;};window.href('/admin/configurator/property.detail.do?key='+$('#slType').val(),{ctrl:{editable:false}})"></a>
	 			<a class="reladd" config="{
	 				action:'/admin/configurator/property.edit.html?edittype=insert&rd=1&exptag=log_type:日志操作类型'
	 				,callback:function(object){
	 					$('<option selected value='+object.spId+'>'+object.spName+'</option>').appendTo('#slType');
	 				}
	 			}" href="javascript:void(0);"></a>
	 	 </lz:block>
	 	 
	 	 <em>请选择系统日志的操作类型</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slType_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="slType">{{srvLog.slType}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/configurator/property.details.html?key=srvLog.slType}')">
			 {{lz.html(srvLog.slType$||srvLog.slType)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slType}}
	{{lz.set("slUser_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slUser"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"slUser"))))}}
	{{lz.set("slUser_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$slUser}}
	<dl lz:if="{{slUser_editable||slUser_readonly}}" class="slUser  " major  ref="slUser">
		<dt>操 作 人:</dt>
		<dd lz:if="{{slUser_editable}}" input="combox">
			<lz:block lz:if="{{srvLog$slUser}}">
				{{srvLog$slUser}}
			</lz:block>
			<lz:block lz:if="{{!srvLog$slUser}}">
		 			<select class="combox narrow" action="/admin/permissions/user.query.do?size=255" id="slUser" name="srvLog.slUser">
		 				<option selected="selected" value="{{lz.htm(srvLog.slUser)}}">{{lz.htm(srvLog.slUser$||srvLog.slUser)}}</option>
		 			</select>
		 			<a class="lookup" href="javascript:void(0);" onclick="if($.trim($('#slUser').val())==''){return;};window.href('/admin/permissions/user.detail.do?key='+$('#slUser').val(),{ctrl:{editable:false}})"></a>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slUser_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="slUser">{{srvLog.slUser}}</textarea>
		 		<span>
		 	
			 <a href="javascript:void(0);" onclick="window.href('/admin/permissions/user.details.html?key=srvLog.slUser}')">
			 {{lz.html(srvLog.slUser$||srvLog.slUser)}}</a>
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slUser}}
	{{lz.set("slClass_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slClass"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"slClass"))))}}
	{{lz.set("slClass_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$slClass}}
	<dl lz:if="{{slClass_editable||slClass_readonly}}" class="ribs slClass  " minor  ref="slClass">
		<dt>模块类名:</dt>
		<dd lz:if="{{slClass_editable}}" input="text">
			<lz:block lz:if="{{srvLog$slClass}}">
				{{srvLog$slClass}}
			</lz:block>
			<lz:block lz:if="{{!srvLog$slClass}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="srvLog.slClass" id="slClass"  value="{{lz.htm(srvLog.slClass)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入系统日志的模块类名</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slClass_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="slClass">{{srvLog.slClass}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvLog.slClass$||srvLog.slClass)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slClass}}
	{{lz.set("slRelate_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slRelate"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"slRelate"))))}}
	{{lz.set("slRelate_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$slRelate}}
	<dl lz:if="{{slRelate_editable||slRelate_readonly}}" class="ribs slRelate  " minor  ref="slRelate">
		<dt>数据ID:</dt>
		<dd lz:if="{{slRelate_editable}}" input="number">
			<lz:block lz:if="{{srvLog$slRelate}}">
				{{srvLog$slRelate}}
			</lz:block>
			<lz:block lz:if="{{!srvLog$slRelate}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="srvLog.slRelate" id="slRelate"  value="{{lz.htm(srvLog.slRelate)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入系统日志的数据ID</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slRelate_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="slRelate">{{srvLog.slRelate}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvLog.slRelate$||srvLog.slRelate)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slRelate}}
	{{lz.set("slDetail_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slDetail"))))&&true)||(edittype=='update'&&true)||((edittype=='any')&&(lz.idin(fields,"slDetail"))))}}
	{{lz.set("slDetail_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$slDetail}}
	<dl lz:if="{{slDetail_editable||slDetail_readonly}}" class="ribs slDetail   wider" major  ref="slDetail">
		<dt>数据状态:</dt>
		<dd lz:if="{{slDetail_editable}}" input="textarea">
			<lz:block lz:if="{{srvLog$slDetail}}">
				{{srvLog$slDetail}}
			</lz:block>
			<lz:block lz:if="{{!srvLog$slDetail}}">
		 	<textarea class="input wide"  id="slDetail" name="srvLog.slDetail" rows="5">{{srvLog.slDetail}}</textarea>
	 	 </lz:block>
	 	 
	 	 <em>请输入系统日志的数据状态</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slDetail_readonly}}">
		 	<div class="state-input wide">
		 		<span>
		 	
			 {{lz.html(srvLog.slDetail$||srvLog.slDetail)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slDetail}}
	{{lz.set("slAddTime_editable",((edittype=='insert'||(edittype=='inport' && (!lz.idin(inports,"slAddTime"))))&&false)||(edittype=='update'&&false)||((edittype=='any')&&(lz.idin(fields,"slAddTime"))))}}
	{{lz.set("slAddTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&true)||(edittype=='detail'))}}
	
	{{before$slAddTime}}
	<dl lz:if="{{slAddTime_editable||slAddTime_readonly}}" class="slAddTime  " major  ref="slAddTime">
		<dt>操作时间:</dt>
		<dd lz:if="{{slAddTime_editable}}" input="datetime">
			<lz:block lz:if="{{srvLog$slAddTime}}">
				{{srvLog$slAddTime}}
			</lz:block>
			<lz:block lz:if="{{!srvLog$slAddTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="srvLog.slAddTime" id="slAddTime"  value="{{srvLog.slAddTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择系统日志的操作时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{slAddTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="slAddTime">{{srvLog.slAddTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(srvLog.slAddTime$||srvLog.slAddTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$slAddTime}}
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{srvLog.slId}}" name="srvLog.slId" id="slId" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'||edittype=='inport'}}">
				<button class="button" type="submit">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					<span class="iconB iconfont icon-weibiaoti8"></span>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				<button lz:if="{{canDel}}" type="button" class="button" onclick="deleteLog('{{srvLog.id}}','{{srvLog.slName}}')">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					删除&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="cancel();" type="button">
					&nbsp;<img class="iconA" align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					<span class="iconB iconfont icon-icon11"></span>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>

 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>
	
	$(function(){
		if(parent.setit){
			parent.setit("/admin/systematic/log.edit.html",document.title,"/admin//images/icons/2008825642250778013.png");
		}
	});
	
	function cancel(){
		if(parent.closeHref){
			parent.closeHref("/admin/systematic/log.edit.html");
		}else{
			$.closeModalDialog();
		}
	}


	/**
	* 删除系统日志
	**/
	function deleteLog(id,flag)
	{
		var dialog=top.$.dialog({
				html:"<span style='white-space:nowrap;'>确定要删除当前数据吗？</span>",
				title:"删除系统日志",
				modal: true,			
				onOk:function(){
					dialog.closeDialog();
					var url = "/admin/systematic/log.delete.do";
					var params = {id:id};
					var protocol = $.getAjax(url,params);
					if(protocol.message){
						top.$.toast(protocol.message);
					}
					if(protocol.success){
						caller.location.href=caller.location.href;		
					}
				}
		 });	
	}
</script>
</html>